home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / NMK / Recorders / TranscriptManager.h < prev    next >
Text File  |  1995-06-12  |  1KB  |  49 lines

  1. /***** TranscriptManager.h -- recording/archiving object interface
  2.     NeXTstep Measurement Kit
  3.     by Alex Meyer <ameyer@phoenix.Princeton.EDU>
  4.     for computer science senior thesis
  5.     16 April 1992 -- created
  6.     21 April 1992 -- put defines in structs.h & added setFile/close
  7.     22 April 1992 -- centralized filename extension
  8. *****/
  9.  
  10. #import <objc/hashtable.h>
  11. #import <objc/Object.h>
  12.  
  13. #define FILEEXT ("trnscrpt")
  14.  
  15. typedef struct {
  16.     unsigned type;
  17.     NXAtom key;
  18.     NXAtom desc;
  19.     unsigned statsSize;
  20.     void *Stats;    /* private copy */
  21. } tmRec,*tmPtr;
  22.  
  23. @interface TranscriptManager : Object
  24. {
  25.     id storage;
  26.     BOOL fileValid;
  27.     NXAtom fileName;
  28. }
  29.  
  30. - setFile:(NXAtom)fName;
  31. - close;
  32. - load;
  33. - save;
  34. - (unsigned)addRecord:(tmPtr)rec;
  35. - (unsigned)numRecords;
  36. - copyRecordIndex:(unsigned)ind
  37.     into:(tmPtr)dst;
  38. - copyRecordKey:(NXAtom)key
  39.     ofType:(unsigned)type
  40.     into:(tmPtr)dst
  41.     where:(unsigned *)Ind;
  42. - (BOOL)findIndex:(unsigned *)Ind
  43.     ofKey:(NXAtom)key
  44.     andType:(unsigned)type;
  45. - copyIndex:(unsigned)ind
  46.     statsFrom:(void *)Stats;
  47.  
  48. @end
  49.